//
//  HSPShopperModel.m
//  Icar
//
//  Created by dllo on 15/10/16.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "HSPShopperModel.h"

@implementation HSPShopperModel
- (void)encodeWithCoder:(NSCoder *)aCoder{

    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.image forKey:@"image"];
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.pubDate forKey:@"pubDate"];
    [aCoder encodeObject:self.count forKey:@"count"];

}

#pragma mark - 解码读取

- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self) {
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.image = [aDecoder decodeObjectForKey:@"image"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.pubDate = [aDecoder decodeObjectForKey:@"pubDate"];
        self.count = [aDecoder decodeObjectForKey:@"count"];
    }
    return self;
}
@end
